<div class="panel panel-default" ng-controller="BusVehicleShiftListCtrl">
	<div class="panel-heading">
		跨城巴士 / 班次档案 / 关联车辆
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.vehicle__plate" class="form-control" placeholder="车牌号">
				</div>
			</div>					
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
                    <th style="width:80px;">车辆编号</th>
					<th style="width:80px;">车牌号</th>
					<th style="width:80px;">状态</th>
					<th style="width:80px;">类型</th>
					<th style="width:80px;">座位总数</th>
					<th style="width:80px;">可售票数</th>
					<th style="width:80px;">
					  <div class="row list-icon">	
						  <a href tooltip="添加关联" >
							  <i class="fa fa-plus fa-fw" ng-click="write()"></i>
						  </a>
				        </div>		
					</th>					
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="vs in dataList">
					<td></td>
					<td>{{vs.vehicle.code}}</td>
					<td>{{vs.vehicle.plate}}</td>
					<td>
					   <span ng-if="vs.vehicle.status==0">未启用</span>
					   <span ng-if="vs.vehicle.status==1">正常</span>
					   <span ng-if="vs.vehicle.status==2">暂停使用</span>
					</td>					
					<td>{{vs.vehicle.model}}</td>
					<td>{{vs.vehicle.seats}}</td>
					<td>{{vs.vehicle.tickets}}</td>
					<td>
						<div class="row list-icon">						
							<a href tooltip="取消关联">
								<i class="fa fa-times fa-fw" ng-click="del('sm',vs ,'delete')"></i>
							</a>																			
						</div>
								
				</tr>
				<tr ng-show="dataList.length==0">
					<td colspan="8" style="text-align: center;">暂无关联车辆信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>